package com.ds.infrastructure.audit.road.controller;

import com.ds.infrastructure.audit.road.service.RoadService;
import com.ds.infrastructure.audit.common.entity.Result;
import com.ds.infrastructure.audit.road.api.vo.RoadVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作用：
 *
 * @author WeiShaoying
 */
@RestController
@RequestMapping("/forecast")
public class RoadController {

    @Autowired
    private RoadService roadService;

    @GetMapping("/queryRoadState")
    public Result<RoadVO> queryTodayWeather() {
        return Result.success(roadService.queryRoadState());
    }

}
